package com.czkt.controller;


import com.czkt.common.annotation.Log;
import com.czkt.core.AjaxResult;
import com.czkt.core.controller.BaseController;
import com.czkt.enums.BusinessType;
import com.czkt.pojo.SysUser;
import com.czkt.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 用户信息
 * 
 * @author ruoyi
 */
@RestController
@RequestMapping("/system/user")
public class SysUserController extends BaseController
{
    @Autowired
    private ISysUserService userService;


    /**
     * 获取用户列表
     */
//    @PreAuthorize("@ss.hasPermi('system:user:list')")
    @GetMapping("/list")
    public AjaxResult list(SysUser user)
    {
        return  AjaxResult.success(userService.list());
    }


}
